package com.zxt.smartplatform.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.zxt.smartplatform.pojo.Device;

import java.util.concurrent.ExecutionException;

public interface DeviceService {

    void addDevice(Device device) throws ExecutionException;

    Device findById(String id);

    void sendControl(String id, String command) throws JsonProcessingException;

    void updateDeviceOnlineStaus(Device device);
}
